<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="StyleSheet" type="text/css" href="{%$templates%}/admin.css">
{%formtool_init src="$templates/js/formtool.js"%}
</head>
<body marginheight='0' topmargin='0'>
<table border='0' cellpadding='0' cellspacing='1' width='100%' class="text">
   <tr bgcolor='#f5f5f5'>
      <td style="padding: 10px 20px;" align="left" class="darkgrey">
      <a href="news.php?e=10" target="_self">{%$events[10].title%}</a></td>
      <td align="right" style="padding: 5px 20px 0 0;" valign="middle">
      <form action="news.php" method="POST">
      Язык: {%include file='servlet.lang.html' onchange=1%} &nbsp;
      {%include file='servlet.cat.html' folder=1%}
      </form>
      </td>
   </tr>
   <tr>
      <td align='center' valign='top' style='padding-top: 5px' colspan="2">
      {%if $vars neq false%}
         <form action='news.php' method='POST'>
         <table width='100%' border='0' cellpadding='2' cellspacing='1' class='text'>
            <tr bgcolor='#cccccc'>
               <th>N:</th>
               <th>Заголовок:</th>
               <th>Автор:</th>
               <th>Дата:</th>
               <th>Категория:</th>
               <th>Просмотров:</th>
               <th>Язык:</th>
               <th>Удалить:</th>
            </tr>
            {%section name=i loop=$vars%}
            <tr bgcolor='
               {%cycle values="#f0f0f0,#e0e0e0"%}'>
               <td align='center'>{%$smarty.section.i.iteration+$paginate.first-1%}</td>
               <td align='left'>&nbsp; <a href='news.php?e=9&id={%$vars[i].id%}' class="lmid" title='{%$events[9].title%}'>{%$vars[i].title%}</a></td>
               <td align='left'>&nbsp; {%$vars[i].login%}</td>
               <td align='left'>&nbsp; {%$vars[i].dat|date_format:"%d.%m.%Y"%}</td>
               <td align='left'>&nbsp; {%$vars[i].category%}</td>
               <td align="center">{%$vars[i].viewed%}</td>
               <td align='center'>{%$vars[i].lang%}</td>
               <td align='center'><input type='checkbox' value='{%$vars[i].id%}' name="dele[]"></td>
            </tr>
            {%/section%}
            <tr>
         </table>

         <div align="right" style="margin:5px">
            {%formtool_checkall name="dele[]" checkall_text="Выбрать все" uncheckall_text="Снять выделение"%}
         </div>
         <div align="right" style="margin:5px;">
            <input type='submit' name='submit' value='&nbsp;Удалить&nbsp;' onclick='window.confirm("Вы уверены?\nОтмеченные вами записи будут удалены!")' />
         </div>

         <div style="float: left">
            Записей {%$paginate.first id=$pid%}-{%$paginate.last id=$pid%} из {%$paginate.total id=$pid%}
         </div>
         <div style="float: right;">
            {%paginate_prev id=$pid class='lmid'%} 
            {%paginate_middle id=$pid class='lmid'%} 
            {%paginate_next id=$pid class='lmid'%}
         </div>

         </form>
         {%else%}
         <font color='red'>Нет никаких записей</font>
      {%/if%}
      </td>
   </tr>
</table>

</body>
</html>